package com.wzh.design.newDesignPattern.observerPattern;

public class HexaObserver extends Observer{
 
   public HexaObserver(Student student){
      this.student = student;
      this.student.attach(this);
   }
 
   @Override
   public void update() {
      System.out.println( "Hex String: " 
      + Integer.toHexString( student.getState() ).toUpperCase() );
   }
}